/**
 */

;define([
    '@/components/dialog',
    './game.pixi',
    '../../apis'], 
    function(Dialog, GamePixi, apis){

    const {html, Component, linkState, render} = preact;
    


    class Game extends Component{
        constructor(){
            super(...arguments)

            this.state = {
            }
        }
        
        async componentDidMount(){
            this.game = new GamePixi();
            this.game.onEnd = function(){
							//游戏结束
            }
            this.game.$com = this;

            this.loadData();
        }
        async loadData(){
            
        }
        render({ }, { 
            foo, 
          }){

            return html`<div class="page-game">
            <div id="game"></div>
            </div>`
          }
    }

    return Game;

});